package com.zhiche.lisa.lspm.dao.model.fleet;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * <p>
 * 车队管理员表
 * </p>
 *
 * @author hongbo
 * @since 2018-10-29
 */
@TableName("lisa_fleet_admin")
public class FleetAdmin extends Model<FleetAdmin> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;

	/**
	 * 真实姓名
	 */
	private String name;
	/**
	 * 手机号
	 */
	private String mobile;

    /**
     * 车队ID
     */
	@TableField("fleet_id")
	private Long fleetId;
	@TableField("tenant_id")
	private Long tenantId;
    /**
     * 账户ID
     */
	@TableField("account_id")
	private Long accountId;

	/**
	 * 承运商ID
	 */
	@TableField("lsp_id")
	private Long lspId;

    /**
     * 创建日期
     */
	@TableField("gmt_create")
	private Date gmtCreate;
    /**
     * 更新时间
     */
	@TableField("gmt_update")
	private Date gmtUpdate;
    /**
     * 创建人
     */
	private String creator;

	/**
	 * 密码
	 */
	@TableField(exist = false)
	private String password;

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getFleetId() {
		return fleetId;
	}

	public void setFleetId(Long fleetId) {
		this.fleetId = fleetId;
	}

	public Long getTenantId() {
		return tenantId;
	}

	public void setTenantId(Long tenantId) {
		this.tenantId = tenantId;
	}

	public Long getAccountId() {
		return accountId;
	}

	public void setAccountId(Long accountId) {
		this.accountId = accountId;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Date getGmtUpdate() {
		return gmtUpdate;
	}

	public void setGmtUpdate(Date gmtUpdate) {
		this.gmtUpdate = gmtUpdate;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public Long getLspId() {
		return lspId;
	}

	public void setLspId(Long lspId) {
		this.lspId = lspId;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "FleetAdmin{" +
				"id=" + id +
				", name='" + name + '\'' +
				", mobile='" + mobile + '\'' +
				", fleetId=" + fleetId +
				", tenantId=" + tenantId +
				", accountId=" + accountId +
				", lspId=" + lspId +
				", gmtCreate=" + gmtCreate +
				", gmtUpdate=" + gmtUpdate +
				", creator='" + creator + '\'' +
				'}';
	}
}
